/**
 * LeafSet.java
 * ************************** 
 * @date Apr 26, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package gossipServices.bootstraping.theBootstrapingService;

import gossipServices.basic.nodeDescriptors.NodeDescriptor;

import java.util.Queue;

/**
 * Description: 
 *
 */
public interface LeafSet {
	
	public boolean merge(Queue<NodeDescriptor> mq);
	
	public boolean adjustSuccPrec();
	
	public NodeDescriptor selectPeer();
	
	public LeafSet head(int firstElements);
	
	public boolean sort();

	/**
	 * @param randIndex
	 * @return
	 */
	public NodeDescriptor get(int index);
	
	public int size();
		
}
